package com.fcmeditech.AsianSexyGirls.File;

import java.lang.ref.SoftReference;
import java.util.HashMap;
import java.util.List;

import android.graphics.Bitmap;

public class MemoryCache {
    private HashMap<String, SoftReference<Bitmap>> cache=new HashMap<String, SoftReference<Bitmap>>();
    
    public Bitmap get(String url){
        if(!cache.containsKey(url)) return null;
      //  SoftReference<Bitmap> ref=cache.get(id);
        return cache.get(url).get();
    }
     
    
    public void put(String id, Bitmap bitmap){
        cache.put(id, new SoftReference<Bitmap>(bitmap));
    }
   public void getall() {
	// TODO Auto-generated method stub
	   
}
    public void clear() {
        cache.clear();
    }



}